package com.dongway.netcondition;

import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

import com.dongway.netcondition.socketToBox.StartThread;

@Component
public class Initializer implements CommandLineRunner {

    @Override
    public void run(String... args) throws Exception {
        StartThread startThread = new StartThread();
        System.out.println("开启。。。。。。。。。。。。。。。。。。。");
        // 开启服务器
        startThread.serverListener();

        // 开启监听
        startThread.startListener();
        // startThread.getIpPhone(2);
        // startThread.getNetWork(2);
        // startThread.getDevIsListeren(2);
        // startThread.reStart(2);
        // System.out.println("开启。。。。。。。。。。。。。。。。。。。");

    }

}
